/**
 * @fileOverview cc.Layer封装
 * @author goodzsq@gmail.com
 */

var Base = gg.module('view.cc.Base');

var View = Base.extend({
    createNode: function(attrs) {
        return cc.LabelTTF.create(attrs.text);
    }
});

View.metadata = _.extend({}, Base.metadata, {
    text: {
        defaultValue: 0,
        label: '文字',
        type: 'datatype.String',
        setter: function(v) {
            this.node.setString(v);
        },
        getter: function() {
            return this.node.getString();
        }
    }
});
module.exports = View;